<?php
error_reporting(0);
$tit = 'Admin Cpanel';
session_start();
header('Content-Type: text/html; charset=UTF-8');
require_once("in/tren.php");
echo'<div class="navigation"><b>Admin Cpanel</b></div><div align="right"><div style="border-top: 3px solid #13cfeb;"></div></div></div><div class="main_menu">';
if($taikhoan['quyen'] != 2)
{
header('Location:'.$set['home'].'');
}else{
switch ($_GET['a'])
{
default:
echo 'Cài đặt hệ thống:<br>
<form action="?a=luu" method="post">
&bull; Đăng kí<br><select name="dangki" style="font-size:x-small">
<option value="op">Mở</option>
<option value="cl">Đóng</option></select>
<br>
&bull; Phòng Chat<br><select name="chat" style="font-size:x-small">
<option value="op">Mở</option>
<option value="cl">Đóng</option></select>
<br>
&bull; Khách tải Game<br><select name="taive" style="font-size:x-small">
<option value="op">Cho Phép</option>
<option value="cl">Không Được</option></select>
<br>
&bull; Tiêu đề chèn vào Game<br><input type="text" name="tit" value="'.$set['tit'].'" size="8"><br>
&bull; Trang chủ<br><input type="text" name="home" value="'.$set['home'].'" size="8">
<br>
&bull; Tên wap<br><input type="text" name="cp" value="'.$set['cp'].'" size="8">
<br>
&bull; Keyword<br><textarea name="key" cols="15" rows="2">'.$set['key'].'</textarea><br><input type="submit" value="Lưu Cài Đặt"><br></div>';
break;
case 'luu':
$home = $_POST['home'];
$dangki = $_POST['dangki'];
$taive = $_POST['taive'];
$chat = $_POST['chat'];
$tit = $_POST['tit'];
$cp = $_POST['cp'];
$key = $_POST['key'];
@mysql_query("update `caidat` set `home` = '".$home."', `dangki` = '".$dangki."', `tit` = '".$tit."', `chat` = '".$chat."', `cp` = '".$cp."', `key` = '".$key."', `taive` = '".$taive."' where `id` = '1'");
echo 'Lưu Cài Đặt.!<br>&laquo;<a href="?">Quay lại</a></div>';
break;
} }
require_once("in/duoi.php");
?>
